Namespaces | |
| Events_Interface | |
Functions | |
| def | decoding_char (ctypes_char_array) |
| def | event_callback (pEventInfo, pUser) |
| def | image_callback (pData, pFrameInfo, pUser) |
| def | print_interface_info (interfaceList) |
| def | print_devices_info (deviceList) |
Variables | |
| currentsystem = platform.system() | |
| input_func = raw_input | |
| fun_ctype = get_platform_functype() | |
| stEventInfo = POINTER(MV_EVENT_OUT_INFO) | |
| EventInfoCallBack = fun_ctype(None, stEventInfo, c_void_p) | |
| EVENT_CALL_BACK_FUN = EventInfoCallBack(event_callback) | |
| stFrameInfo = POINTER(MV_FRAME_OUT_INFO_EX) | |
| pData = POINTER(c_ubyte) | |
| FrameInfoCallBack = fun_ctype(None, pData, stFrameInfo, c_void_p) | |
| IMAGE_CALL_BACK_FUN = FrameInfoCallBack(image_callback) | |
| SDKVersion = MvCamera.MV_CC_GetSDKVersion() | |
| interfaceList = MV_INTERFACE_INFO_LIST() | |
| transportLayerType = MV_GIGE_INTERFACE | MV_CAMERALINK_INTERFACE | MV_CXP_INTERFACE | MV_XOF_INTERFACE | |
| ret = MvCamera.MV_CC_EnumInterfaces(transportLayerType, interfaceList) | |
| nInterfaceIndex = input_func("please input the number of the interface to connect:") | |
| cam_instance = MvCamera() | |
| interface_instance = MvCamera() | |
| curInterface = cast(interfaceList.pInterfaceInfos[int(nInterfaceIndex)], POINTER(MV_INTERFACE_INFO)).contents | |
| deviceList = MV_CC_DEVICE_INFO_LIST() | |
| nCamIndex = input_func("please input the number of the device to connect:") | |
| stDeviceList = cast(deviceList.pDeviceInfo[int(nCamIndex)], POINTER(MV_CC_DEVICE_INFO)).contents | |
| nPacketSize = cam_instance.MV_CC_GetOptimalPacketSize() | |